package com.yyg.ssm.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: 一一哥
 * @Blame: yyg
 * @Since: Created in 2021/1/6
 * @Description: $cursor$
 */
@Controller
public class IndexController {

    @GetMapping("/")
    public String showLogin() {

        // /WEB-INF/jsp/login.jsp

        return "redirect:/login.jsp";
    }

    @GetMapping("/home")
    public String showHome() {

        // /WEB-INF/jsp/home.jsp

        return "home";
    }

    @GetMapping("/403")
    public String show403() {

        // /WEB-INF/jsp/home.jsp

        return "403";
    }

}
